<template>
  <div class="collect-page">
    <van-nav-bar fixed title="我的喜欢"></van-nav-bar>  
    <article-from
      v-for="item in list"
      :key="item.id"
      :item="item"
    ></article-from>
  </div>
</template>

<script>
import ArticleFrom from "@/components/ArticleFrom.vue";
import { getCollect } from "@/api/detailAPI";
export default {
  components: { ArticleFrom },
  data() {
    return {
      list: [],
    };
  },
  async created() {
    const res = await getCollect(2, 1);
    this.list = res.data.rows;
    console.log(res);
  },
};
</script>

<style lang="less" scoped>
.collect-page {
  margin-bottom: 50px;
  margin-top: 44px;
}
</style>